import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { PermissionEntity, RoleEntity } from "src/entity";
import { RoleService } from "./service/role.service";
import { PerimssionService } from "./service/permission.service";
import { RoleController } from "./controller/role.controller";
import { PermissionController } from "./controller/permission.controller";

@Module({
    imports: [TypeOrmModule.forFeature([RoleEntity, PermissionEntity])],
    providers: [PerimssionService, RoleService],
    controllers: [RoleController, PermissionController],
    exports: [PerimssionService, RoleService],
})
export class RoleModule {}
